Ensure we don't get erroneous information about invalid log levels or such.
Closes #1381
.arg("--crate-name").arg("_")
.arg("--crate-type").arg("dylib")
.arg("--crate-type").arg("bin")
- .arg("--print=file-names");
+ .arg("--print=file-names")
+ .env_remove("RUST_LOG");
if let Some(s) = target {
process.arg("--target").arg(s);
};
"#)
.file("src/lib.rs", "pub fn foo() {}");
- assert_that(p.cargo_process("build"), execs().with_status(0));
+ // env var is a test for #1381
+ assert_that(p.cargo_process("build").env("RUST_LOG", "nekoneko=trace"),
+ execs().with_status(0));
});
test!(staticlib_rlib_and_bin {